package com.checking.attendance.dao;

import com.checking.attendance.pojo.Leave;
import com.checking.attendance.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserMapper {
    int deleteByPrimaryKey(String id);
    int insert(User record);
    int insertSelective(User record);
    User selectByPrimaryKey(String id);
    int updateByPrimaryKeySelective(User record);
    int updateByPrimaryKey(User record);
    int updateAdminByPrimaryKey(User record);
    User selectUser(String name);
    User selectPwd(User record);
    List<User> selectAll();
    int updateUserPwd(User record);
    int updateUserLev(User record);
    List<User> selectByPrimaryKeyLevel(String level);

}